/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reportFormsRouter = {
  path: '/reportForms',
  component: Layout,
  redirect: '/reportForms/manualReport',
  name: 'reportForms',
  permission: '报表订阅',
  meta: {
    title: '报表订阅',
    icon: 'excel',
    permission: '报表订阅',
  },
  alwaysShow: true,
  children: [
    {
      path: 'manualReport',
      name: 'manualReport',
      permission: '手动报表',
      component: () => import('@/views/reportForms/manualReport'),
      meta: { title: '手动报表', icon: 'dian', permission: '手动报表' }
    },
    {
      path: 'autoReport',
      name: 'autoReport',
      permission: '自动报表',
      component: () => import('@/views/reportForms/autoReport'),
      meta: { title: '自动报表', icon: 'dian', permission: '自动报表' }
    },
    {
      path: 'templates',
      name: 'templates',
      permission: '报表模板',
      component: () => import('@/views/reportForms/templates'),
      meta: { title: '报表模板', icon: 'dian', permission: '报表模板' }
    },
  ]
}

export default reportFormsRouter
